home *** CD-ROM | disk | FTP | other *** search
Wrap
XXXXmmmmeeeeGGGGeeeettttNNNNeeeexxxxttttCCCChhhhaaaarrrraaaacccctttteeeerrrr((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmeeeeGGGGeeeettttNNNNeeeexxxxttttCCCChhhhaaaarrrraaaacccctttteeeerrrr((((3333XXXX)))) NNNNAAAAMMMMEEEE XXXXmmmmeeeeGGGGeeeettttNNNNeeeexxxxttttCCCChhhhaaaarrrraaaacccctttteeeerrrr - A compound string parse procedure to insert a character SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS #include <Xm/XmP.h> XXXXmmmmIIIInnnncccclllluuuuddddeeeeSSSSttttaaaattttuuuussss XXXXmmmmeeeeGGGGeeeettttNNNNeeeexxxxttttCCCChhhhaaaarrrraaaacccctttteeeerrrr( XXXXttttPPPPooooiiiinnnntttteeeerrrr ****tttteeeexxxxtttt____iiiinnnn____oooouuuutttt, XXXXttttPPPPooooiiiinnnntttteeeerrrr tttteeeexxxxtttt____eeeennnndddd, XXXXmmmmTTTTeeeexxxxttttTTTTyyyyppppeeee ttttyyyyppppeeee, XXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaagggg ttttaaaagggg, XXXXmmmmPPPPaaaarrrrsssseeeeMMMMaaaappppppppiiiinnnngggg eeeennnnttttrrrryyyy, iiiinnnntttt ppppaaaatttttttteeeerrrrnnnn____lllleeeennnnggggtttthhhh, XXXXmmmmSSSSttttrrrriiiinnnngggg ****ssssttttrrrr____iiiinnnncccclllluuuuddddeeee, XXXXttttPPPPooooiiiinnnntttteeeerrrr ccccaaaallllllll____ddddaaaattttaaaa); VVVVEEEERRRRSSSSIIIIOOOONNNN This page documents Motif 2.1. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN XXXXmmmmeeeeGGGGeeeettttNNNNeeeexxxxttttCCCChhhhaaaarrrraaaacccctttteeeerrrr is a compound string parse procedure (a function of type XXXXmmmmPPPPaaaarrrrsssseeeePPPPrrrroooocccc). It is suitable for use as an XXXXmmmmNNNNiiiinnnnvvvvooookkkkeeeePPPPaaaarrrrsssseeeePPPPrrrroooocccc procedure in an XXXXmmmmPPPPaaaarrrrsssseeeeMMMMaaaappppppppiiiinnnngggg data structure. XXXXmmmmeeeeGGGGeeeettttNNNNeeeexxxxttttCCCChhhhaaaarrrraaaacccctttteeeerrrr causes the character following the pattern characters to be used as output to the compound string under construction. The function assumes that _t_e_x_t__i_n__o_u_t points to the first byte of the first character in the matched pattern. It creates a compound string consisting of a component that contains the next character following the matching characters. It sets _t_e_x_t__i_n__o_u_t to a pointer to the first byte following the character parsed. _t_e_x_t__i_n__o_u_t Specifies the text being parsed. The value is a pointer to the first byte of text matching the pattern that triggered the call to the parse procedure. When the parse procedure returns, this argument is set to the position in the text where parsing should resume; that is, to the byte following the character parsed by the parse procedure. _t_e_x_t__e_n_d Specifies a pointer to the end of the _t_e_x_t__i_n__o_u_t string. If _t_e_x_t__e_n_d is _N_U_L_L, the string is scanned until a _N_U_L_L character is found. Otherwise, the string is scanned up to, but not including, the character whose address is _t_e_x_t__e_n_d. _t_y_p_e Specifies the type of text and the type of Page 1 (printed 10/3/02) XXXXmmmmeeeeGGGGeeeettttNNNNeeeexxxxttttCCCChhhhaaaarrrraaaacccctttteeeerrrr((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmeeeeGGGGeeeettttNNNNeeeexxxxttttCCCChhhhaaaarrrraaaacccctttteeeerrrr((((3333XXXX)))) compound string component the function creates. If _t_y_p_e is XXXXmmmmCCCCHHHHAAAARRRRSSSSEEEETTTT____TTTTEEEEXXXXTTTT and _t_a_g is other than XXXXmmmmFFFFOOOONNNNTTTTLLLLIIIISSSSTTTT____DDDDEEEEFFFFAAAAUUUULLLLTTTT____TTTTAAAAGGGG, the function creates a component of type XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG____CCCCOOOOMMMMPPPPOOOONNNNEEEENNNNTTTT____TTTTEEEEXXXXTTTT. If _t_y_p_e is XXXXmmmmCCCCHHHHAAAARRRRSSSSEEEETTTT____TTTTEEEEXXXXTTTT and _t_a_g is XXXXmmmmFFFFOOOONNNNTTTTLLLLIIIISSSSTTTT____DDDDEEEEFFFFAAAAUUUULLLLTTTT____TTTTAAAAGGGG, or if _t_y_p_e is XXXXmmmmMMMMUUUULLLLTTTTIIIIBBBBYYYYTTTTEEEE____TTTTEEEEXXXXTTTT, the function creates a component of type XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG____CCCCOOOOMMMMPPPPOOOONNNNEEEENNNNTTTT____LLLLOOOOCCCCAAAALLLLEEEE____TTTTEEEEXXXXTTTT. If _t_y_p_e is XXXXmmmmWWWWIIIIDDDDEEEECCCCHHHHAAAARRRR____TTTTEEEEXXXXTTTT, the function creates a component of type XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG____CCCCOOOOMMMMPPPPOOOONNNNEEEENNNNTTTT____WWWWIIIIDDDDEEEECCCCHHHHAAAARRRR____TTTTEEEEXXXXTTTT. _t_a_g Specifies the tag to be used along with a _t_y_p_e of XXXXmmmmCCCCHHHHAAAARRRRSSSSEEEETTTT____TTTTEEEEXXXXTTTT in determining the type of compound string component the function creates. _e_n_t_r_y Specifies the parse mapping that triggered the call to the parse procedure. _p_a_t_t_e_r_n__l_e_n_g_t_h Specifies the number of bytes in the input text, following _t_e_x_t__i_n__o_u_t, that constitute the matched pattern. _s_t_r__i_n_c_l_u_d_e Specifies a pointer to a compound string. The parse procedure creates a compound string to be included in the compound string being constructed. The parse procedure then returns the compound string in this argument. _c_a_l_l__d_a_t_a Specifies data passed by the application to the parsing routine. RRRREEEETTTTUUUURRRRNNNN This function returns XXXXmmmmIIIINNNNSSSSEEEERRRRTTTT, indicating that the parsing routine should concatenate the result to the compound string being constructed and continue parsing. RRRREEEELLLLAAAATTTTEEEEDDDD XXXXmmmmPPPPaaaarrrrsssseeeeMMMMaaaappppppppiiiinnnngggg(3), XXXXmmmmPPPPaaaarrrrsssseeeeTTTTaaaabbbblllleeee(3), XXXXmmmmSSSSttttrrrriiiinnnngggg(3), and XXXXmmmmeeeeGGGGeeeettttDDDDiiiirrrreeeeccccttttiiiioooonnnn(3). Page 2 (printed 10/3/02)